<?php
include('top.php');
require_once('pasmy/dbwaarden.php');
if(empty($_SESSION['taal'])) {
	session_destroy();
		Header( "HTTP/1.1 301 Moved Permanently" );
		 
		Header( "Location: login.php" ); 
}
/*echo "dbhost = $dbhost<br>";*/
echo "<br><br>";
$mysql_id = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($db, $mysql_id);

$sql = "SELECT prijs FROM `vnzvrn2011` WHERE `week` LIKE '13'";
$res = mysql_query($sql, $mysql_id);
while ($row = mysql_fetch_row($res)) {
	$geld = $geld + $row[0];

}
mysql_free_result($res);

echo "totaal week = $geld<br>";


include('footer.php');
?>
